/**
 * 
 */
package com.study;

import static org.junit.Assert.assertNotNull;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.study.entity.GatewayHandlerEntity;
import com.study.service.HandlerEntityService;

/**
 * @author Administrator
 * @date 2019年5月15日
 */
public class AppMain {

	private static Logger logger = LoggerFactory.getLogger(AppMain.class);

	private static HandlerEntityService handlerEntityService = null;

	public static void main(String[] args) {

		ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-mybaits.xml");
		handlerEntityService = ctx.getBean(HandlerEntityService.class);

		assertNotNull(handlerEntityService);
		GatewayHandlerEntity user = handlerEntityService.getById(16);
		logger.info(user.toString());

	}
}
